package com.example.zg.zg_312_ordering_new.services;

import com.example.zg.zg_312_ordering_new.beans.CollectStatus;
import com.example.zg.zg_312_ordering_new.beans.CommentInfo;
import com.example.zg.zg_312_ordering_new.beans.FoodInfo;
import com.example.zg.zg_312_ordering_new.beans.Result;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface FoodService {

    @GET("getFoodByShop.do")
    Call<List<FoodInfo>>getFoodByShop(@Query("shop_id")int shop_id);

    @GET("isCollected.do")
    Call<CollectStatus>isCollected(
            @Query("user_id")int user_id,
            @Query("shop_food_id")int shop_food_id,
            @Query("flag")int flag
    );
    //收藏/取消收藏店铺
    @GET("userCollectShop.do")
    Call<Result>userCollectShop(
            @Query("user_id")int user_id,
            @Query("shop_id")int shop_id
    );
    //收藏/取消收藏菜谱
    @GET("userCollectFood.do")
    Call<Result>userColloctFood(
      @Query("uer_id") String user_id,
      @Query("food_id") int food_id
    );
    @GET("getFoodById.do")
    Call<FoodInfo>getFoodById(
            @Query("food_id") int food_id
    );
    @GET("getAllUserComment.do")
    Call<List<CommentInfo>>getAllUserComment(
            @Query("user_id")int user_id
    );
    //
}
